<?php

/*
 * Treasure 0$*
 *
 * +3$
 * When you play this, return it to the Spoils pile. (This is not in the Supply)
 */

class Spoils extends Card implements iTreasure, iDarkAges, iSpoils {

    public function __construct() {
        parent::__construct("Spoils", 0);
        $this->undoPlay = false;
        $this->undoBuy = false;
    }

    public function getDisplayName($quantity = 1) {
        if ($quantity == 1) {
            return "Spoils";
        }
        return $quantity." Spoils";
    }
    
    public function autoPlayNum(Game $game) {
        return -1;
    }

    public function getDescription() {
        return array(
            "+3$",
            "When you play this, return it to the Spoils pile. (This is not in the Supply)");
    }

    public function play(Game $game, $isRealCard) {
        $game->addMoney(new Price(3));
        $s = $game->moveCardFromPileToPile($this, PlayArea, Spoils);
    }

}

?>